<template>
  <div>
    <span ref="header"> ref传值</span>
    <child ref="child" />
    <button @click="$refs.child.count++">改变子组件中的 count  </button>
  </div>
</template>

<script>
import Child from './Child.vue'
export default {
  components: { Child },
  mounted() {
    console.log(this.$refs.header);
    console.log(this.$refs.child);
  },

}
</script>

<style scoped>
div{
  color: rgb(226, 188, 119);
}
</style>